<!DOCTYPE html>
<!-- 3、获取并删除数组的第一个、最后一个元素值。 -->
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
	<script type="text/javascript">
		var array = [ 45, 12, 58, 12, 78, 56, 34, 52 ];
		document.write(array.shift() + "<br />")
		document.write(array+ "<br />");
		
		document.write(array.pop() + "<br />")
		document.write(array);
	</script>

</body>
</html>